<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE xsl:stylesheet [
	<!ENTITY % sys SYSTEM "lang://system">
	%sys;
	<!ENTITY % blogs SYSTEM "lang://blogs">
	%blogs;
]>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
		
	<xsl:template name="menu">
		<div id="menu">
			<div id="main_menu">
				<a href="{$baseURI}/" class="selected">&labelMenuBlogs;</a>
				<xsl:text> / </xsl:text>
				<a href="{$baseURI}/people">&labelMenuPeople;</a>
				<xsl:text> / </xsl:text>
				<a href="{$baseURI}/photos">&labelMenuPhotos;</a>
				<xsl:text> / </xsl:text>
				<a href="{$baseURI}/lenta">&labelMenuLenta;</a>
			</div>
			<div id="main_sub_menu">
				<a href="{$baseURI}/">
					<xsl:if test="//@method = '__default'">
						<xsl:attribute name="class">selected</xsl:attribute>
					</xsl:if>
					<xsl:text>&labelMenuPopular;</xsl:text>
				</a>
				<a href="{$baseURI}/blogs/all">
					<xsl:if test="//@method = 'all'">
						<xsl:attribute name="class">selected</xsl:attribute>
					</xsl:if>
					<xsl:text>&labelMenuAll;</xsl:text>
				</a>
				<a href="{$baseURI}/blogs/thematic">
					<xsl:if test="//@method = 'thematic'">
						<xsl:attribute name="class">selected</xsl:attribute>
					</xsl:if>
					<xsl:text>&labelMenuThematic;</xsl:text>
				</a>
				<a href="{$baseURI}/blogs/personal">
					<xsl:if test="//@method = 'personal'">
						<xsl:attribute name="class">selected</xsl:attribute>
					</xsl:if>
					<xsl:text>&labelMenuPersonal;</xsl:text>
				</a>
				<a href="{$baseURI}/blogs/top" title="Рейтинг блогов">
					<xsl:if test="//@method = 'top'">
						<xsl:attribute name="class">selected</xsl:attribute>
					</xsl:if>
					<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
					<img src="{$baseURI}/images/list-icon.png" />
				</a>
			</div>
		</div>
	</xsl:template>
	
</xsl:stylesheet>